package com.my.chapter17;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;

import static net.mindview.util.Countries.names;

public class practice3 {
    public static void main(String[] args) {
        Set<String> set1 = new HashSet<String>();
        Set<String> set2 = new LinkedHashSet<String>();
        Set<String> set3 = new TreeSet<String>();

        for(int i = 0; i < 5; i++){
            set1.addAll(names(10));
            set2.addAll(names(10));
            set3.addAll(names(10));
        }

        System.out.println(set1);
        System.out.println(set2);
        System.out.println(set3);
    }
}
